﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" MasterPageFile="~/BaseInfoMaster.master"
    Inherits="_Default" %>

<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxMenu" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="stylesheet" href="../Content/Site.css" />
    <link type="text/css" rel="stylesheet" href="../Content/CodeFormatter.css" />
    <style type="text/css">
        .pcmCellCaption
        {
            white-space: nowrap;
            padding-top: 5px;
        }
        .pcmCellText
        {
            padding-left: 10px;
            padding-top: 2px;
        }
        .pcmCheckBox
        {
            padding-left: 6px;
            padding-bottom: 10px;
        }
        .pcmCreateAccount
        {
            text-align: right;
            padding-top: 8px;
            padding-bottom: 4px;
        }
        .pcmButton
        {
            padding-top: 10px;
            padding-bottom: 0px;
        }
        .pcmSideSpacer
        {
            width: 60px;
            height: 1px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <%--<dx:ASPxImage ID="ASPxImage1" ClientInstanceName="xxx" runat="server" ImageUrl="~/Content/Sprite.gif" >
<ClientSideEvents Click="function(s, e) {
	popMenu.ShowAtElement(xxx);
}"  />
</dx:ASPxImage>--%>
    <h1 class="DemoTitle">
        欢迎界面
    </h1>
    <div id="DemoArea">
        <div class="Spacer">
        </div>
        <table>
            <tr>
                <td rowspan="3">
                    <img alt="" src="Images/User.png" />
                </td>
                <td>
                    <dx:ASPxLabel ID="lab_Time" runat="server" Text="ASPxLabel">
                    </dx:ASPxLabel>
                </td>
            </tr>
            <tr>
                <td>
                    <dx:ASPxLabel ID="lab_User" Font-Bold="true" runat="server" Text="ASPxLabel">
                    </dx:ASPxLabel>
                </td>
            </tr>
            <tr>
                <td>
                    欢迎进入天香楼内容管理系统！
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <dx:ASPxButton ID="SubmitBtn" runat="server" AutoPostBack="false" Font-Size="10pt"
                        Text="密码修改" CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx"
                        SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
                        <ClientSideEvents Click="function(s, e) { pcLogin.Show(); }" />
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
        <dx:ASPxPopupControl ID="pcLogin" runat="server" CloseAction="CloseButton" Modal="True"
            PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ClientInstanceName="pcLogin"
            HeaderText="密码修改" AllowDragging="True" EnableAnimation="False" EnableViewState="False">
            <ClientSideEvents PopUp="function(s, e) { c_tbPassword.Focus(); }" />
            <ContentCollection>
                <dx:PopupControlContentControl runat="server">
                    <dx:ASPxPanel ID="Panel1" runat="server" DefaultButton="btOK">
                        <PanelCollection>
                            <dx:PanelContent runat="server">
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td rowspan="5">
                                            <div class="pcmSideSpacer">
                                            </div>
                                        </td>
                                        <td class="pcmCellCaption" valign="top">
                                            <dx:ASPxLabel ID="lblPassword" runat="server" Text="旧密码:" AssociatedControlID="tbPassword">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td class="pcmCellText">
                                            <dx:ASPxTextBox ID="tbPassword" runat="server" Width="150px" Password="True" ClientInstanceName="c_tbPassword"
                                                CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td rowspan="5">
                                            <div class="pcmSideSpacer">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="pcmCellCaption" valign="top">
                                            <dx:ASPxLabel ID="lblPass1" runat="server" Text="新密码:" AssociatedControlID="tbPassword1">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td class="pcmCellText">
                                            <dx:ASPxTextBox ID="tbPassword1" runat="server" Width="150px" Password="True" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                                CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="pcmCellCaption" valign="top">
                                            <dx:ASPxLabel ID="lblPass2" runat="server" Text="确认密码:" AssociatedControlID="tbPassword2">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td class="pcmCellText">
                                            <dx:ASPxTextBox ID="tbPassword2" runat="server" Width="150px" Password="True" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                                CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <div class="pcmButton">
                                                <table width="100%" cellpadding="0" cellspacing="0">
                                                    <tr>
                                                        <td align="right">
                                                            <dx:ASPxButton ID="btOK" runat="server" Text="确定" Width="80px" AutoPostBack="False"
                                                                CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css"
                                                                OnClick="btOK_Click">
                                                                <ClientSideEvents Init="function(s, e) {if(c_tbPassword.GetText()!='') pcLogin.Hide(); }" />
                                                            </dx:ASPxButton>
                                                        </td>
                                                        <td>
                                                            <div style="width: 8px;">
                                                            </div>
                                                        </td>
                                                        <td align="left">
                                                            <dx:ASPxButton ID="btCancel" runat="server" Text="取消" Width="80px" AutoPostBack="False"
                                                                CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
                                                                <ClientSideEvents Click="function(s, e) { pcLogin.Hide(); }" />
                                                            </dx:ASPxButton>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </dx:PanelContent>
                        </PanelCollection>
                    </dx:ASPxPanel>
                </dx:PopupControlContentControl>
            </ContentCollection>
        </dx:ASPxPopupControl>
    </div>
</asp:Content>
